from config.config import DATA_PATH,DOWNLOAD_PATH,ALPHA_PORT,ALPHA_DB_HOST,DESKTOP_PATH
from tools.mongo_tool import MongoDbLink
import pymongo
from config.config import TEST_PORT,TEST_DB_HOST
mongo_link = pymongo.MongoClient(ALPHA_DB_HOST,ALPHA_PORT)
jw = MongoDbLink(TEST_DB_HOST,TEST_PORT,'alpha-test')
alpha = mongo_link.alpha
goat_dev = MongoDbLink(ALPHA_DB_HOST,ALPHA_PORT,'goat_warehouse_dev')
dg = mongo_link.goat_warehouse_dg

collections_list = ['appointments', 'stockdeposits', 'stockinorders', 'stockoutorders', 'actionlogs']

for i in collections_list:
    """删除erp测试环境数据"""
    goat_dev.delete_many(i, {})